package com.yc.systeminfo;

import java.util.Properties;

public class SystemInfo {
	
	public void m1() {
		Properties pro = System.getProperties();
		System.out.println(pro.getProperty("os.name"));
		System.out.println(pro.getProperty("os.version"));
		System.out.println(pro.getProperty("java.version"));
	}

	public static void main(String[] args) {
		SystemInfo si = new SystemInfo();
		si.m1();

	}

}
